<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <meta charset="UTF-8">
    <script src="js/jquery-2.2.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function(){

            $("#Button1").click(function(){
                $.post("Default2.aspx","",function(data){
                    $("#x").text(data);
                },"text");
            });
            $("#my").ajaxStart(function(){
                $(this).show();
            }).ajaxStop(function(){
                $(this).hide();
            });

        });
    </script>
</head>
<body>
<form id="form1" runat="server">


    <input id="Button1" type="button" value="button"  />
    <div id="my" style=" display:none">
        <img src="loading.gif" />
    </div>
    <div id="x"></div>
</form>
</body>
</html>